<?php

function list_workforce(){
	
	$header = array(
		'#'=>array('style'=>'border-bottom:2px solid;width:10%'),  
		'Keterangan'=>array('style'=>'border-bottom:2px solid;width:65%'),  
		'Rupiah'=>array('style'=>'border-bottom:2px solid;width:25%'),  
	);

	$query = "SELECT * FROM wf_productivity";
	$result = my_query($query);
	$row = array();
	$total=0;
	$i=0;
	while($ey = my_fetch_array($result) ){
		$ket=str_repeat("&nbsp;",($ey['heading']-1)*3).$ey['label'];
		$i++;
		$row[] = array(
				'no'=> $i,
				'ket'=> $ket,
				'rp'=> 0 ,
			);			
	}	
	$datas = table_rows($row);

	$menuontop = array(
		'Cetak' => array('onclick'=>'javascript:window.open(\'index.php?com=report&task=rpt_workforce\',\'mywin\',\'left=20,top=20,width=800,height=600,toolbar=0,resizable=0\');')
	);
	$printmenu = additional_menu_on_list( $menuontop ,'');
	return $printmenu.table_builder($header , $datas ,  5 , false );

}
